<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>函数传参，改变Div任意属性的值</title>
</head>
<link rel="stylesheet" href="./css/index.css">
<script src="./js/index.js"></script>
<body>
    <span>属性名：</span><input type="text" name="" id="item" value="background"><br>
   <span>属性值：</span><input type="text" name="" id="value" value="blue"><br>
   <input type="button" value="确定" id="btn_Ok">
   <input type="button" value="重置" id="btn_Reset"><br>
   <div id="box">在上方输入框中输入"属性名"及"属性值"，点击确定按钮查看效果。</div>
</body>
</html>